<template>
  <div class="sxz-massage"  :class="type">
    <div class="sxz-massage-icon"></div>
    <div class="sxz-massage-content">{{ text }}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      text: "",
      type: "",
    };
  },
  computed: {
    backgroundColor() {
      return "red";
    },
  },
};
</script>

<style lang="scss" scoped>
.sxz-massage {
  position: fixed;
  left: 50%;
  // top: 84px;
  box-sizing: border-box;
  transform: translateX(-50%);
  border: 1px solid #ebeef5;
  min-width: 380px;
  border-radius: 5px;
  transition: opacity .3s ,transform .4s , top .4s;
  overflow: hidden;
  padding: 15px 15px 15px 20px;
    display: flex;
  align-items: center;
  .sxz-massage-icon {
    width: 20px;
    height: 20px;
  }

  .sxz-massage-content {
    
  }


  &.success{
    background-color: #f0f9eb;
    border-color:#e1f3d8;
  }
  &.warning{
    background-color: #fdf6ec;
    border-color:#faecd8
  }
  &.info{
    background-color: #edf2fc;
    // border-color:#e1f3d8
  }
  &.error{
    background-color: #fef0f0;
    border-color:#fde2e2
  }
}
</style>
